package com.wnhz.work.jy.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.wnhz.work.jy.BaseActivity;
import com.wnhz.work.jy.MyMain;
import com.wnhz.work.jy.R;
import com.wnhz.work.jy.bean.PurchaseCodeResult;

public class PurchaseCodeThirdly extends BaseActivity implements View.OnClickListener {
    private PurchaseCodeResult purchaseCodeResult;
    private TextView title;
    private TextView view_main_right_text;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_purchase_code_thirdly);
        purchaseCodeResult = (PurchaseCodeResult) getIntent().getSerializableExtra("purchaseCodeResult");

    }

    private void initTitle() {
        title = (TextView) findViewById(R.id.view_main_middle_title);
        view_main_right_text = (TextView) findViewById(R.id.view_main_right_text);

        title.setText("支付");
        view_main_right_text.setText("取消");
        findViewById(R.id.btn_main_left).setVisibility(View.GONE);
        findViewById(R.id.btn_main_right).setVisibility(View.VISIBLE);
        findViewById(R.id.btn_main_right).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_main_right:
                startActivity(new Intent(PurchaseCodeThirdly.this, MyMain.class).putExtra("Pagination", 4));
                break;
        }
    }
}
